package com.william.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xinchuang
 * @version v1.0
 * @date 2022/1/18 14:02
 * @since Copyright(c) 好心情医疗科技
 */
@RequestMapping
@RestController
public class TestController {

    @Value("${dubbo.protocol.name}")
    private String test;

    @GetMapping(value = "/test")
    public String getTest(){
        return test;
    }
}